/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package actividad5_4;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 *
 * @author Mañana
 */
public class Actividad5_4 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws FileNotFoundException {
        try {
            //Declaramos el Archivo
            //Buscamos el Fichero que queremos mostrar
            FileReader fr = new FileReader("./QUIJOTE.txt");
            BufferedReader bf = new BufferedReader(fr);
            long lNumeroLineas = 0;
            String sCadena;
            while ((sCadena = bf.readLine()) != null) {
                lNumeroLineas++;
            }

            fr.close();

            System.out.println("Lineas: " + lNumeroLineas);

        } catch (IOException ex) {
            System.out.println("Excepcion de IO.");
        }
    }
}
